/*
 *    Copyright (c) 2018-2025, boss All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions are met:
 *
 * Redistributions of source code must retain the above copyright notice,
 * this list of conditions and the following disclaimer.
 * Redistributions in binary form must reproduce the above copyright
 * notice, this list of conditions and the following disclaimer in the
 * documentation and/or other materials provided with the distribution.
 * Neither the name of the boss developer nor the names of its
 * contributors may be used to endorse or promote products derived from
 * this software without specific prior written permission.
 * Author: boss
 */

package com.hopes.bizz.risk.integral.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.hopes.bizz.risk.integral.dto.RiskIntegralExchangeAuditDTO;
import com.hopes.bizz.risk.integral.dto.RiskIntegralExchangeDTO;
import com.hopes.bizz.risk.integral.entity.RiskIntegralExchangeEntity;
import com.hopes.bizz.risk.integral.vo.RiskIntegralExchangeVO;
import com.hopes.boss.act.base.FlowService;

/**
 * 兑换记录
 *
 * @author daijie
 * @date 2023-07-26 11:07:08
 */
public interface RiskIntegralExchangeService extends IService<RiskIntegralExchangeEntity>, FlowService<RiskIntegralExchangeEntity> {

    /* 分页查询 */
    Page<RiskIntegralExchangeVO> listPage(Page<RiskIntegralExchangeEntity> page, RiskIntegralExchangeDTO integralExchangeDTO);
    Page<RiskIntegralExchangeVO> listMyPage(Page<RiskIntegralExchangeEntity> page, RiskIntegralExchangeDTO integralExchangeDTO);


    /* 根据Id查询 */
    RiskIntegralExchangeVO getById(Long id);

    /**
     * @Description 提交积分兑换
     * @Author lyb
     * @Date 2023/8/9
     **/
    void submit(Long id);

    /**
     * @Description 积分兑换审批
     * @Author lyb
     * @Date 2023/8/10
     **/
    void handlerAudit(RiskIntegralExchangeAuditDTO riskIntegralExchangeAuditDTO);
}
